package 多线程;

/**
 * @author chihb
 * @create-time 2024/7/6 21:33
 * @description
 */
public class Test {
    public static void main(String[] args) throws InterruptedException {
        Thread t=new MyThread("chihebin");
        t.start();
        t.join();
        System.out.println(t.getName());
        Thread main=Thread.currentThread();
        System.out.println(main.getName());
        for (int i = 0; i < 10; i++) {
            System.out.println("mian线程运行"+i);
        }
    }
}
